package com.wf.classRoomTest.exch;

/**
 * @Author fengqq
 * @Description 静态代理
 * @Date 2024/6/19  15:20
 *
 *
 */
public  abstract  class  StaticUserSerivceProxy implements IUserService {

    //目标对象
    private IUserService userService;
    public StaticUserSerivceProxy(IUserService userService) {
        this.userService = userService;
    }

    @Override
    public boolean login(String username, String password) {
        return userService.login(username,password);
    }

    @Override
    public boolean register(String username, String password, int age) {
        return userService.register(username,password,age);
    }
}
